package com.sea.app.module.identity.domain.service;

import com.sea.app.module.identity.domain.User;
import com.sea.app.module.identity.domain.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by 31417 on 2017/4/26.
 */
@Service
public class UserService {
    @Autowired
    UserRepository userRepository;


    public User get(Long id){
        User user =  userRepository.getOne(id);
        user.setSalt("");
        user.setPassword("");
        return user;
    }
}
